package org.eiahe.hr.salary.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.ehe.common.mybatis.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 公积金缴纳对象 hr_salary_housing_fund
 *
 * @author zhangnn
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hr_salary_housing_fund")
public class HousingFundPayment extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 公积金缴纳ID
     */
    @TableId(type = IdType.AUTO)
    private Long paymentId;

    /**
     * 租户ID
     */
    private String tenantId;

    /**
     * 工号
     */
    private String employeeNo;

    /**
     * 员工姓名
     */
    private String employeeName;

    private String idCard;
    private String department;

    /**
     * 基础金额
     */
    private BigDecimal baseAmount;

    /**
     * 年月(yyyyMM格式)
     */
    @TableField("year_month1")
    private String yearMonth;

    /**
     * 个人缴纳额
     */
    private BigDecimal personalAmount;

    /**
     * 公司缴纳额
     */
    private BigDecimal companyAmount;

    /**
     * 缴纳基数
     */
    private BigDecimal paymentBase;

    /**
     * 个人缴纳比例
     */
    private BigDecimal personalRate;

    /**
     * 公司缴纳比例
     */
    private BigDecimal companyRate;

    /**
     * 缴纳状态(0未缴纳 1已缴纳)
     */
    private String paymentStatus;

    /**
     * 缴纳时间
     */
    private Date paymentTime;

    /**
     * 删除标志(0存在 1删除)
     */
    @TableLogic
    private String delFlag;
}